home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: Mailbox/MIME Entity
(archive/mbox).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Newsgroup Content (archive/news)
| magic
| Supported |
100%
| dexvert
| Mailbox/MIME Entity (archive/mbox)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| news text
| default
| |
99%
| file
| C source, ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| dexmagic
| PrintFox/Pagefox WEAK
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/950 MIME Email (1.0)
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
| |
100%
| xdgMime
| message/news
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 6e 6e | 74 70 2e 74 65 6c 65 70 |Path: nn|tp.telep|
|00000010| 6f 72 74 2e 63 6f 6d 21 | 75 73 65 6e 65 74 0a 46 |ort.com!|usenet.F|
|00000020| 72 6f 6d 3a 20 47 48 6f | 75 63 6b 20 3c 68 6b 73 |rom: GHo|uck <hks|
|00000030| 79 73 40 74 65 6c 65 70 | 6f 72 74 2e 63 6f 6d 3e |ys@telep|ort.com>|
|00000040| 0a 4e 65 77 73 67 72 6f | 75 70 73 3a 20 63 6f 6d |.Newsgro|ups: com|
|00000050| 70 2e 6c 61 6e 67 2e 63 | 0a 53 75 62 6a 65 63 74 |p.lang.c|.Subject|
|00000060| 3a 20 52 65 3a 20 49 20 | 6e 65 65 64 20 68 65 6c |: Re: I |need hel|
|00000070| 70 20 6f 6e 20 70 75 74 | 74 69 6e 67 20 32 20 73 |p on put|ting 2 s|
|00000080| 74 72 69 6e 67 73 20 74 | 6f 67 65 74 68 65 72 20 |trings t|ogether |
|00000090| 69 6e 74 6f 20 31 28 63 | 6f 6e 63 61 74 65 6e 61 |into 1(c|oncatena|
|000000a0| 74 65 29 0a 44 61 74 65 | 3a 20 32 34 20 46 65 62 |te).Date|: 24 Feb|
|000000b0| 20 31 39 39 36 20 30 34 | 3a 34 32 3a 32 37 20 47 | 1996 04|:42:27 G|
|000000c0| 4d 54 0a 4f 72 67 61 6e | 69 7a 61 74 69 6f 6e 3a |MT.Organ|ization:|
|000000d0| 20 73 79 73 74 65 6d 73 | 20 68 6b 0a 4d 65 73 73 | systems| hk.Mess|
|000000e0| 61 67 65 2d 49 44 3a 20 | 3c 34 67 6d 34 76 6a 24 |age-ID: |<4gm4vj$|
|000000f0| 39 74 31 40 6d 61 75 72 | 65 65 6e 2e 74 65 6c 65 |9t1@maur|een.tele|
|00000100| 70 6f 72 74 2e 63 6f 6d | 3e 0a 52 65 66 65 72 65 |port.com|>.Refere|
|00000110| 6e 63 65 73 3a 20 3c 34 | 67 63 72 31 62 24 66 74 |nces: <4|gcr1b$ft|
|00000120| 33 40 63 6c 6f 6e 65 72 | 34 2e 6e 65 74 63 6f 6d |3@cloner|4.netcom|
|00000130| 2e 63 6f 6d 3e 0a 4e 4e | 54 50 2d 50 6f 73 74 69 |.com>.NN|TP-Posti|
|00000140| 6e 67 2d 48 6f 73 74 3a | 20 69 70 2d 70 64 78 31 |ng-Host:| ip-pdx1|
|00000150| 30 2d 30 32 2e 74 65 6c | 65 70 6f 72 74 2e 63 6f |0-02.tel|eport.co|
|00000160| 6d 0a 4d 69 6d 65 2d 56 | 65 72 73 69 6f 6e 3a 20 |m.Mime-V|ersion: |
|00000170| 31 2e 30 0a 43 6f 6e 74 | 65 6e 74 2d 54 79 70 65 |1.0.Cont|ent-Type|
|00000180| 3a 20 74 65 78 74 2f 70 | 6c 61 69 6e 3b 20 63 68 |: text/p|lain; ch|
|00000190| 61 72 73 65 74 3d 75 73 | 2d 61 73 63 69 69 0a 43 |arset=us|-ascii.C|
|000001a0| 6f 6e 74 65 6e 74 2d 54 | 72 61 6e 73 66 65 72 2d |ontent-T|ransfer-|
|000001b0| 45 6e 63 6f 64 69 6e 67 | 3a 20 37 62 69 74 0a 58 |Encoding|: 7bit.X|
|000001c0| 2d 4d 61 69 6c 65 72 3a | 20 4d 6f 7a 69 6c 6c 61 |-Mailer:| Mozilla|
|000001d0| 20 31 2e 32 32 20 28 57 | 69 6e 64 6f 77 73 3b 20 | 1.22 (W|indows; |
|000001e0| 49 3b 20 33 32 62 69 74 | 29 0a 54 6f 3a 20 73 70 |I; 32bit|).To: sp|
|000001f0| 64 63 6f 6f 6c 40 69 78 | 2e 6e 65 74 63 6f 6d 2e |dcool@ix|.netcom.|
|00000200| 63 6f 6d 0a 0a 73 70 64 | 63 6f 6f 6c 40 69 78 2e |com..spd|cool@ix.|
|00000210| 6e 65 74 63 6f 6d 2e 63 | 6f 6d 28 53 50 44 29 20 |netcom.c|om(SPD) |
|00000220| 77 72 6f 74 65 3a 0a 5b | 73 6e 69 70 5d 0a 3e 23 |wrote:.[|snip].>#|
|00000230| 69 6e 63 6c 75 64 65 20 | 3c 73 74 64 69 6f 2e 68 |include |<stdio.h|
|00000240| 3e 0a 3e 23 69 6e 63 6c | 75 64 65 20 3c 73 74 64 |>.>#incl|ude <std|
|00000250| 6c 69 62 2e 68 3e 0a 3e | 23 69 6e 63 6c 75 64 65 |lib.h>.>|#include|
|00000260| 20 3c 73 74 72 69 6e 67 | 2e 68 3e 0a 3e 23 69 6e | <string|.h>.>#in|
|00000270| 63 6c 75 64 65 20 3c 74 | 69 6d 65 2e 68 3e 0a 3e |clude <t|ime.h>.>|
|00000280| 73 74 72 75 63 74 20 64 | 61 74 61 20 7b 0a 3e 20 |struct d|ata {.> |
|00000290| 20 20 20 63 68 61 72 20 | 2a 66 75 6c 6c 5f 6e 61 | char |*full_na|
|000002a0| 6d 65 3b 0a 3e 20 20 20 | 20 69 6e 74 20 61 67 65 |me;.> | int age|
|000002b0| 3b 0a 3e 20 20 20 20 66 | 6c 6f 61 74 20 73 61 6c |;.> f|loat sal|
|000002c0| 61 72 79 3b 0a 3e 20 7d | 3b 0a 3e 0a 3e 73 74 72 |ary;.> }|;.>.>str|
|000002d0| 75 63 74 20 6e 61 6d 65 | 20 20 7b 0a 3e 20 20 20 |uct name| {.> |
|000002e0| 63 68 61 72 20 2a 66 69 | 72 73 74 31 2c 20 2a 6c |char *fi|rst1, *l|
|000002f0| 61 73 74 31 3b 0a 3e 20 | 20 7d 3b 0a 3e 0a 3e 0a |ast1;.> | };.>.>.|
|00000300| 3e 69 6e 74 20 6d 61 69 | 6e 28 76 6f 69 64 29 0a |>int mai|n(void).|
|00000310| 3e 7b 20 0a 3e 20 20 73 | 74 72 75 63 74 20 6e 61 |>{ .> s|truct na|
|00000320| 6d 65 20 66 6e 61 6d 65 | 5b 33 5d 2c 20 6c 6e 61 |me fname|[3], lna|
|00000330| 6d 65 5b 33 5d 3b 0a 3e | 20 20 73 74 72 75 63 74 |me[3];.>| struct|
|00000340| 20 64 61 74 61 20 73 65 | 63 72 65 74 5b 35 5d 3b | data se|cret[5];|
|00000350| 0a 3e 20 20 69 6e 74 20 | 69 2c 20 72 61 6e 3b 0a |.> int |i, ran;.|
|00000360| 3e 0a 5b 73 6e 69 70 5d | 0a 3e 20 20 20 73 65 63 |>.[snip]|.> sec|
|00000370| 72 65 74 5b 69 5d 2e 66 | 75 6c 6c 5f 6e 61 6d 65 |ret[i].f|ull_name|
|00000380| 20 3d 20 66 6e 61 6d 65 | 5b 65 5d 2e 66 69 72 73 | = fname|[e].firs|
|00000390| 74 31 3b 2f 2a 20 74 68 | 65 20 74 72 6f 75 62 6c |t1;/* th|e troubl|
|000003a0| 65 20 73 6f 6d 65 20 70 | 61 72 74 20 62 65 67 69 |e some p|art begi|
|000003b0| 6e 0a 5b 73 6e 69 70 5d | 0a 48 69 2c 0a 59 6f 75 |n.[snip]|.Hi,.You|
|000003c0| 72 20 66 69 72 73 74 20 | 61 6e 64 20 66 6f 72 65 |r first |and fore|
|000003d0| 6d 6f 73 74 20 70 72 6f | 62 6c 65 6d 20 61 70 70 |most pro|blem app|
|000003e0| 65 61 72 73 20 74 6f 20 | 62 65 3a 0a 0a 20 20 73 |ears to |be:.. s|
|000003f0| 65 63 72 65 74 5b 69 5d | 2e 66 75 6c 6c 5f 6e 61 |ecret[i]|.full_na|
|00000400| 6d 65 20 3d 20 66 6e 61 | 6d 65 5b 65 5d 2e 66 69 |me = fna|me[e].fi|
|00000410| 72 73 74 31 3b 0a 0a 49 | 74 20 64 6f 65 73 6e 27 |rst1;..I|t doesn'|
|00000420| 74 20 6c 6f 6f 6b 20 6c | 69 6b 65 20 79 6f 75 20 |t look l|ike you |
|00000430| 68 61 76 65 20 61 6c 6c | 6f 63 61 74 65 64 20 61 |have all|ocated a|
|00000440| 6e 79 20 73 70 61 63 65 | 20 74 6f 20 63 6f 70 79 |ny space| to copy|
|00000450| 2f 63 6f 6e 63 61 74 65 | 6e 61 74 65 20 74 68 65 |/concate|nate the|
|00000460| 0a 6f 74 68 65 72 20 73 | 74 72 69 6e 67 73 2e 20 |.other s|trings. |
|00000470| 20 27 66 75 6c 6c 5f 6e | 61 6d 65 27 20 69 73 20 | 'full_n|ame' is |
|00000480| 61 20 70 6f 69 6e 74 65 | 72 20 74 6f 20 61 20 63 |a pointe|r to a c|
|00000490| 68 61 72 2c 20 68 6f 77 | 65 76 65 72 2c 20 69 74 |har, how|ever, it|
|000004a0| 20 68 61 73 20 6e 6f 0a | 76 61 6c 75 65 20 79 65 | has no.|value ye|
|000004b0| 74 20 28 6e 6f 20 61 6c | 6c 6f 63 61 74 65 64 20 |t (no al|located |
|000004c0| 6d 65 6d 6f 72 79 20 66 | 6f 72 20 74 68 65 20 63 |memory f|or the c|
|000004d0| 68 61 72 73 29 2e 20 20 | 45 69 74 68 65 72 20 64 |hars). |Either d|
|000004e0| 69 6d 65 6e 73 69 6f 6e | 20 69 74 20 61 73 20 61 |imension| it as a|
|000004f0| 6e 0a 61 72 72 61 79 20 | 6f 66 20 63 68 61 72 73 |n.array |of chars|
|00000500| 3a 0a 0a 20 20 63 68 61 | 72 20 66 75 6c 6c 5f 6e |:.. cha|r full_n|
|00000510| 61 6d 65 5b 4d 41 58 4e | 55 4d 4f 46 43 48 41 52 |ame[MAXN|UMOFCHAR|
|00000520| 53 5d 3b 0a 0a 6f 72 20 | 6c 65 61 76 65 20 61 73 |S];..or |leave as|
|00000530| 20 61 20 70 6f 69 6e 74 | 65 72 20 61 6e 64 20 61 | a point|er and a|
|00000540| 6c 6c 6f 63 61 74 65 20 | 74 68 65 20 73 70 61 63 |llocate |the spac|
|00000550| 65 3a 0a 0a 20 20 63 68 | 61 72 20 2a 66 75 6c 6c |e:.. ch|ar *full|
|00000560| 5f 6e 61 6d 65 3b 0a 20 | 20 73 65 63 72 65 74 5b |_name;. | secret[|
|00000570| 69 5d 2e 66 75 6c 6c 5f | 6e 61 6d 65 20 3d 20 28 |i].full_|name = (|
|00000580| 63 68 61 72 20 2a 29 6d | 61 6c 6c 6f 63 28 20 4d |char *)m|alloc( M|
|00000590| 41 58 4e 55 4d 4f 46 43 | 48 41 52 53 20 29 3b 0a |AXNUMOFC|HARS );.|
|000005a0| 0a 74 68 65 6e 2c 20 72 | 61 74 68 65 72 20 74 68 |.then, r|ather th|
|000005b0| 61 6e 20 61 73 73 69 67 | 6e 20 27 66 6e 61 6d 65 |an assig|n 'fname|
|000005c0| 5b 65 5d 2e 66 69 72 73 | 74 31 27 20 74 6f 20 69 |[e].firs|t1' to i|
|000005d0| 74 2c 20 75 73 65 3b 0a | 0a 20 20 73 74 72 63 70 |t, use;.|. strcp|
|000005e0| 79 28 20 73 65 63 72 65 | 74 5b 69 5d 2e 66 75 6c |y( secre|t[i].ful|
|000005f0| 6c 5f 6e 61 6d 65 2c 66 | 6e 61 6d 65 5b 65 5d 2e |l_name,f|name[e].|
|00000600| 66 69 72 73 74 31 20 29 | 3b 0a 0a 59 6f 75 72 73 |first1 )|;..Yours|
|00000610| 2c 20 47 65 6f 66 66 20 | 48 6f 75 63 6b 0a 0a 0a |, Geoff |Houck...|
|00000620| 0a 0a | |.. | |
+--------+-------------------------+-------------------------+--------+--------+